[bits 32]
global asm_hello_world

asm_hello_world:
    push eax
    push ebx
    push ecx
    push esi
    ;输出标签
    mov ecx,string_end - string
    mov ebx,(80*10+10)*2 ;(10,10)
    mov esi,string
    mov ah,0x5b		;背景红 字体青色
    output_string:
        mov al,[esi]
        mov word[gs:ebx],ax
        add ebx,2
        inc esi
        loop output_string
    pop esi
    pop ecx
    pop ebx
    pop eax
    ret

string db "22336271 ysj,dear,I'm your operating system!Thank you:)"
string_end:
